import request from '@/utils/request'

// 查询卡券消费订单列表
export function listCardConsumeOrder(query) {
  return request({
    url: '/film/cardConsumeOrder/list',
    method: 'get',
    params: query
  })
}

// 查询卡券消费订单详细
export function getCardConsumeOrder(id) {
  return request({
    url: '/film/cardConsumeOrder/' + id,
    method: 'get'
  })
}

// 新增卡券消费订单
export function addCardConsumeOrder(data) {
  return request({
    url: '/film/cardConsumeOrder',
    method: 'post',
    data: data
  })
}

// 修改卡券消费订单
export function updateCardConsumeOrder(data) {
  return request({
    url: '/film/cardConsumeOrder',
    method: 'put',
    data: data
  })
}

// 删除卡券消费订单
export function delCardConsumeOrder(id) {
  return request({
    url: '/film/cardConsumeOrder/' + id,
    method: 'delete'
  })
}
